#
# Copyright 2009, Jeffrey Palm.
#

require 'util'
require 'track'

class TrackImpl < Track

  def initialize(name,artist,album,track_id)
    super name,artist,album,track_id
    @simple_track = nil
  end
  
  def simple_track
    if not @simple_track # TODO: here?
      @simple_track = TrackImpl.new(remove_nasty_stuff(@name), 
                                    remove_nasty_stuff(@artist), 
                                    remove_nasty_stuff(@album), track_id)
    end
    return @simple_track
  end
  
end
